﻿<table>
<tr>
<?php echo form_open('adminStudies/deleteProfiles/'.$id); ?>
	<td colspan="2"><h2 class="title">Профили</h2></td>
	<td><input type="submit" name="submit" value="Избриши селектирани" /></td>
</tr>
<tr><td colspan="2"><h2>Промени профили</h2></td></tr>
<?php 
	foreach ($profiles as $profile)
	{
		echo "<tr><td colspan='2'>".$profile->name."</td>";
		echo "<td><input type='checkbox' name=".$profile->idSprPk." value=".$profile->idSprPk." /></td></tr>";
	}	
?>
<?php echo form_close(); ?>
<tr><td colspan="2"><h2>Додади профил</h2></td></tr>

<?php echo form_open('adminStudies/addProfile/'.$id); ?>
<tr>
	<td>Насока:</td>
	<td>
		<select name="profile" >
			<?php 
				foreach($allProfiles as $prf)
					echo "<option value='".$prf->idPrfFk."'>".$prf->name."</option>";
			?>
		</select>
	</td>
</tr>
<tr>
	<td colspan="2"><input type="submit" name="submit" value="Додади" /></td>
</tr>
<?php echo form_close(); ?>

</table>